package cloud.demo.offer.domain.service.impl;

import java.util.Date;

import org.springframework.stereotype.Service;

import cloud.demo.offer.domain.model.meal.Meal;
import cloud.demo.offer.domain.service.MealService;

@Service
public class MealServiceImpl implements MealService {
  
    public Meal getOfferById(Integer id){
    	Meal offer = new Meal();
    	offer.setCreateDate(new Date());
    	offer.setId(6666);
    	offer.setOfferName("Hello, my name is meal2. what is your name ?");
        return offer;
    }

    public Integer addOffer(Meal offer) {
    	System.out.println("add offer begin ...");
    	System.out.println("add offer end .....");
        return 1;
    }
}
